package cn.ctbu.xiaopeng.studentscoremanage.pojo.vo;

import jakarta.persistence.Column;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author xiaopeng
 * @version 1.0
 */
@Data
public class UserPageVO {
    private Integer id;  // 主键 ID

    private String userName;  // 用户名，唯一标识，不能为空

    private String roleId;

    private String roleName; // 角色名称，关联学生、教师、管理员表得来的

    private String password;  // 密码，不能为空

    private Integer userType;

    private Integer isLocked;

    private LocalDateTime registerTime;

    public UserPageVO(Integer id, String userName, String roleId,
                      String roleName, String password, Integer userType,
                      Integer isLocked, LocalDateTime registerTime) {
        this.id = id;
        this.userName = userName;
        this.roleId = roleId;
        this.roleName = roleName;
        this.password = password;
        this.userType = userType;
        this.isLocked = isLocked;
        this.registerTime = registerTime;
    }
}
